package net.guerlab.credits.creditsoption.service.impl;

import java.util.List;

import net.guerlab.credits.creditsoption.dqi.CreditsOptionDQI;
import net.guerlab.credits.creditsoption.entity.CreditsOption;
import net.guerlab.credits.creditsoption.entity.CreditsOptionSearchParams;
import net.guerlab.credits.creditsoption.service.CreditsOptionService;

/**
 * 积分设置服务简单实现类
 * 
 * @author guer
 *
 */
public class CreditsOptionServiceImpl implements CreditsOptionService {

    private static final long serialVersionUID = 1L;

    /**
     * 积分设置数据查询接口
     */
    private CreditsOptionDQI creditsOptionDQI;

    /**
     * 设置积分设置数据查询接口
     * 
     * @param creditsOptionDQI
     *            积分设置数据查询接口
     */
    public final void setCreditsOptionDQI(CreditsOptionDQI creditsOptionDQI) {
        this.creditsOptionDQI = creditsOptionDQI;
    }

    @Override
    public CreditsOption findOne(CreditsOptionSearchParams searchParams) {
        return creditsOptionDQI.findOne(searchParams);
    }

    @Override
    public List<CreditsOption> findList(CreditsOptionSearchParams searchParams) {
        return creditsOptionDQI.findList(searchParams);
    }

    @Override
    public int findCount(CreditsOptionSearchParams searchParams) {
        return creditsOptionDQI.findCount(searchParams);
    }

    @Override
    public void save(CreditsOption creditsOption) {
        creditsOptionDQI.save(creditsOption);
    }

    @Override
    public void update(CreditsOption creditsOption) {
        creditsOptionDQI.update(creditsOption);
    }

    @Override
    public void delete(CreditsOption creditsOption) {
        creditsOptionDQI.delete(creditsOption);
    }

}
